package com.fcl.oschina.entity;

import java.util.List;

/**
 * Created by Administrator on 2017/3/21.
 */
public class DetailResult {

    /**
     * abouts : []
     * author : 达尔文
     * authorId : 2903254
     * authorPortrait : https://static.oschina.net/uploads/user/1451/2903254_50.jpg?t=1475462273000
     * authorRelation : 4
     * body :
     * commentCount : 3
     * favorite : false
     * href : https://www.oschina.net/news/83101/leading-linux-distros-dawdle-as-kernel-flaw-persists
     * id : 83101
     * pubDate : 2017-03-21 15:40:00
     * software : {}
     * title : Linux 古老漏洞曝光！众发行版陷入困境
     * viewCount : 41
     */

    private String author;
    private int authorId;
    private String authorPortrait;
    private int authorRelation;
    private String body;
    private int commentCount;
    private boolean favorite;
    private String href;
    private int id;
    private String pubDate;
    private String title;
    private int viewCount;
    private List<AboutEntity> abouts;
    private Software software;

    public Software getSoftware() {
        return software;
    }

    public void setSoftware(Software software) {
        this.software = software;
    }

    public static class Software{

        /**
         * href :
         * id : 10549
         * name : Linux Kernel
         */

        private String href;
        private int id;
        private String name;

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getAuthorId() {
        return authorId;
    }

    public void setAuthorId(int authorId) {
        this.authorId = authorId;
    }

    public String getAuthorPortrait() {
        return authorPortrait;
    }

    public void setAuthorPortrait(String authorPortrait) {
        this.authorPortrait = authorPortrait;
    }

    public int getAuthorRelation() {
        return authorRelation;
    }

    public void setAuthorRelation(int authorRelation) {
        this.authorRelation = authorRelation;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public boolean isFavorite() {
        return favorite;
    }

    public void setFavorite(boolean favorite) {
        this.favorite = favorite;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPubDate() {
        return pubDate;
    }

    public void setPubDate(String pubDate) {
        this.pubDate = pubDate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public List<AboutEntity> getAbouts() {
        return abouts;
    }

    public void setAbouts(List<AboutEntity> abouts) {
        this.abouts = abouts;
    }
}
